<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mrefundorder.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mrefundorder.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '退款订单表',
                    name: 'Mrefundorder',
                    url: "/Mrefundorder/",
                    sortName: "id"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {"createDate":"","pay_order_id":"","state":"","channel_order_no":"","mch_no":"","isv_no":"","app_id":"","way_code":"","notify_state":"","division_state":""},
                searchFormOptions: [[{"title":"创建时间","field":"createDate","type":"datetime"},
                                     {"title":"支付订单号","field":"pay_order_id","type":"like"},
                                     {"title":"退款订单号","field":"state","type":"like"}],
                                     [
                                     {"title":"商户号","field":"mch_no","type":"like"},
                                     {"title":"服务商号","field":"isv_no","type":"like"},
                                     {"title":"应用ID","field":"app_id","type":"like"}],
                                     [
                                    // {"title":" 支付方式","field":"way_code","type":"like"},
                                    {"dataKey":"S_mch_type","data":[],"title":" 商户类型:","field":"type","type":"select"},
                                     {"title":"退款状态","field":"type","type":"select","dataKey": "S_tstate"}],
                                  ],
                columns: [
                       {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'pay_amount',title:'支付金额',type:'bigint',width:90,require:true,align:'left'},
                       {field:'refund_amount',title:'退款金额',type:'bigint',width:90,require:true,align:'left'},
                       {field:'refund_order_id',title:'退款订单号',type:'string',width:160,require:true,align:'left',sortable:true},
                       {field:'pay_order_id',title:'支付订单号',type:'string',width:160,require:true,align:'left'},
                       {field:'state',title:'退款状态',bind:{ key:'S_tstate',data:[]},width:160,require:true,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:160,align:'left',sortable:true},
                       
                       
                    //    {field:'channel_pay_order_no',title:'渠道支付单号（与t_pay_order channel_order_no对应）',type:'string',width:120,align:'left'},
                    //    {field:'mch_no',title:'商户号',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                    //    {field:'isv_no',title:'服务商号',type:'string',width:120,align:'left'},
                    //    {field:'app_id',title:'应用ID',type:'string',width:120,require:true,align:'left'},
                    //    {field:'mch_name',title:'供应商商户名称',type:'string',width:90,require:true,align:'left'},
                    //    {field:'mch_type',title:'类型: 1-普通商户, 2-特约商户(服务商模式)',type:'sbyte',width:90,require:true,align:'left'},
                    //    {field:'mch_refund_no',title:'商户退款单号（商户系统的订单号）',type:'string',width:120,require:true,align:'left'},
                    //    {field:'way_code',title:'支付方式代码',type:'string',width:90,require:true,align:'left'},
                    //    {field:'if_code',title:'支付接口代码',type:'string',width:90,require:true,align:'left'},
                    //    {field:'currency',title:'三位货币代码,人民币:cny',type:'string',width:90,require:true,align:'left'},
                    //    {field:'client_ip',title:'客户端IP',type:'string',width:90,align:'left'},
                    //    {field:'refund_reason',title:'退款原因',type:'string',width:220,require:true,align:'left'},
                    //    {field:'channel_order_no',title:'渠道订单号',type:'string',width:90,align:'left'},
                    //    {field:'err_code',title:'渠道错误码',type:'string',width:180,align:'left'},
                    //    {field:'err_msg',title:'渠道错误描述',type:'string',width:220,align:'left'},
                    //    {field:'channel_extra',title:'特定渠道发起时额外参数',type:'string',width:220,align:'left'},
                    //    {field:'notify_url',title:'通知地址',type:'string',width:180,align:'left'},
                    //    {field:'ext_param',title:'扩展参数',type:'string',width:120,align:'left'},
                    //    {field:'success_time',title:'订单退款成功时间',type:'datetime',width:90,align:'left',sortable:true},
                    //    {field:'expired_time',title:'退款失效时间（失效后系统更改为退款任务关闭状态）',type:'datetime',width:90,align:'left',sortable:true},
                    //    {field:'modifier',title:'修改人',type:'string',width:180,align:'left'},
                    //    {field:'modifyDate',title:'修改时间',type:'datetime',width:90,align:'left',sortable:true},
                    //    {field:'modifyID',title:'修改人ID',type:'int',width:90,hidden:true,align:'left'},
                       
                    //    {field:'createID',title:'创建人ID',type:'int',width:90,hidden:true,align:'left'},
                    //    {field:'creator',title:'创建人',type:'string',width:180,align:'left'},
                    //    {field:'merchantCode',title:'商户编码',type:'string',width:220,align:'left'},
                    //    {field:'merchantName',title:'商户名称',type:'string',width:220,align:'left'}
                ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
